const _import = require('./view-import/' + process.env.NODE_ENV)
export default {
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/',
      component: _import('index'),
      children: [
        {
          path: '/home',
          component: _import('home'),
          name: '首页'
        },
        {
          path: '/source-admin',
          component: _import('source-admin'),
          name: '资源管理',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/clue-management',
          component: _import('clue-management'),
          name: '线索管理',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/intel-collect-management',
          component: _import('intel-collect-management'),
          name: '信息收集管理',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/credit-management',
          component: _import('credit-management'),
          name: '积分管理',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/accusation-management',
          component: _import('accusation-management'),
          name: '举报管理',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/performance-examine',
          component: _import('performance-examine'),
          name: '绩效考核',
          meta: {
            isMenu: true
          }
        },
        {
          path: '/statistics-analysis',
          component: _import('statistics-analysis'),
          name: '统计分析',
          meta: {
            isMenu: true
          }
        }
      ]
    },
    {
      path: '/_source-admin',
      component: _import('source-admin'),
      name: '_资源管理',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_clue-management',
      component: _import('clue-management'),
      name: '_线索管理',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_intel-collect-management',
      component: _import('intel-collect-management'),
      name: '_信息收集管理',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_credit-management',
      component: _import('credit-management'),
      name: '_积分管理',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_accusation-management',
      component: _import('accusation-management'),
      name: '_举报管理',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_performance-examine',
      component: _import('performance-examine'),
      name: '_绩效考核',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/_statistics-analysis',
      component: _import('statistics-analysis'),
      name: '_统计分析',
      meta: {
        isMenu: true
      }
    },
    {
      path: '/temp-form',
      component: _import('temp-form'),
      name: '_统计分析',
      meta: {
        isMenu: true
      }
    }
  ]
}
